﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebShopData
{
    public class Order
    {
        public List<OrderRow> OrderRows { get; set; }
        public string Address { get; set; }
        public string City { get; set; }
        public int ZipCode { get; set; }
        public int UserID { get; set; }

        public Order(List<OrderRow> orderrows, string address, string city, int zipcode, int userid)
        {
            this.OrderRows = orderrows;
            this.Address = address;
            this.City = city;
            this.ZipCode = zipcode;
            this.UserID = userid;
        }

        public Order()
        {
            OrderRows = new List<OrderRow>();
        }

        public override string ToString()
        {
            return string.Format("{0}{1}{2}{3}{4}", OrderRows.ToString(), Address, City, ZipCode, UserID);
        }
    }
}
